<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

div{
    width: 200px;
    height: 200px;
    line-height: 200px;
    background-color: rebeccapurple;
    border: 1px solid red;
    text-align: center;
    margin: 0 auto;
    /* 倾斜角度 
    skew 
    skewX 正值右下角往右拉动  负值往左下角拉动
    skewY
    */

    /* transform: skew(-30deg); */
    transform: skew(45deg);
}

    </style>
</head>
<body>

    <div>
        sss
    </div>
    
</body>
</html>